package enum_;

/**
 * @author wly
 * @create 2022-12-09 16:09
 */
public class EnumMethod {
    public static void main(String[] args) {
        Season autumn = Season.AUTUMN;
        String name = autumn.name();
        System.out.println(name);
        System.out.println(autumn.ordinal());
        Season[] values = Season.values();
        for (Season value : values) {
            System.out.println(value.name());
        }
    }
}
